<?php
/**
 * This is the main web entry point for mae.
 *
 * If you are reading this in your web browser, your server is probably
 * not configured correctly to run PHP applications!
 *
 * http://mundusnovis.info
 *
 * @package site
 * @author Mundusnovis studio
 * @version 1.0
 * @copyright 2007 Mundusnovis studio
 * @site http://mundusnovis.info
 */

// necessary files include
require_once('config.php');
global $mae;

require_once('internal/consts.php');
// language file include
require_once('lang/'.$mae['site_lang'].'.php');

require_once('internal/additional.func.php');
require_once('internal/connect.php');
require_once('internal/Stats.php');


// session setting
session_name($mae['session_name']);
session_cache_expire($mae['session_duration']);
session_start();

// entries count
if (!$_SESSION['entry']) $entry = new StatsEntries();

// engine include
require_once('engines/'.$mae['site_engine'].'/engine.php');

// page render
$mae_engine = new $mae['site_engine'];
$mae_engine->render();
?>
